package zheezes.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class DateFormatUtil {
	private static final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
	private static final DateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss");
	private static final DateFormat DATETIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public static final DateFormat getDateFmt() {
		return (DateFormat) DATE_FORMAT.clone();
	}

	public static final DateFormat getTimeFmt() {
		return (DateFormat) TIME_FORMAT.clone();
	}

	public static final DateFormat getDttmFmt() {
		return (DateFormat) DATETIME_FORMAT.clone();
	}
}
